const router = require('koa-router')()
const Index = require("../app/index")
router.get('/', async (ctx, next) => {
  await ctx.render('index', {
    title: 'Hello Koa 2!'
  })
})

router.get('/meitanchanliang', Index.MeiTanChanLiang)
// JueJinJinChi
router.get('/juejinjinchi', Index.JueJinJinChi)
// MeiTanCangChu
router.get('/meitancangchu', Index.MeiTanCangChu)
// JingXiaRenYuan
router.get('/jingxiarenyuan', Index.JingXiaRenYuan)
// ShuJuShangChuanJianCe
router.get('/shujushangchuanjiance', Index.ShuJuShangChuanJianCe)
router.get('/json', async (ctx, next) => {
  ctx.body = {
    title: 'koa2 json'
  }
})

module.exports = router
